package com.demo2do.fms.entity.data.business;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.demo2do.core.format.PersistentFormat;

/**
 * 动力类型(车辆信息)
 * 
 * @author Ysy
 */
@Entity
@Table(name = "VW_VEHICLE_FEATURE")
@PersistentFormat
public class VehicleFeature {

    @Id
    @GeneratedValue(generator = "generator")
    @GenericGenerator(name = "generator", strategy = "assigned")
    private Long id;
    
    /** 动力类型代码 */
    @Column(name = "vehicle_feature_code")
    private String code;
    
    /** 动力类型名称 */
    @Column(name = "vehicle_feature_name")
    private String name;
    
    /** 满载数量 */
    private Integer fullLoadNumber;
    
    /** 重载耗油量（升/公里）*/
    private BigDecimal fullOilUsagePerKm;
    
    /** 空载耗油量（升/公里）*/
    private BigDecimal emptyOilUsagePerKm;
    
    /** 内部加油量（升）*/
    private BigDecimal internalOilUsage;
    
     /** 吨位 */
    private BigDecimal tonAmount;
    
    @Column(name = "is_disabled")
    private boolean disabled;
    
    /**
     * 
     * the default constructor
     */
    public VehicleFeature() {

    }
    
    /**
     * @return the id
     */
    public Long getId() {
        return this.id;
    }

    /**
     * @return the code
     */
    public String getCode() {
        return this.code;
    }

    /**
     * @return the name
     */
    public String getName() {
        return this.name;
    }

    /**
     * @return the fullLoadNumber
     */
    public Integer getFullLoadNumber() {
        return this.fullLoadNumber;
    }

    /**
     * @return the fullOilUsagePerKm
     */
    public BigDecimal getFullOilUsagePerKm() {
        return this.fullOilUsagePerKm;
    }

    /**
     * @return the emptyOilUsagePerKm
     */
    public BigDecimal getEmptyOilUsagePerKm() {
        return this.emptyOilUsagePerKm;
    }

    /**
     * @return the internalOilUsage
     */
    public BigDecimal getInternalOilUsage() {
        return this.internalOilUsage;
    }

    /**
     * @return the tonAmount
     */
    public BigDecimal getTonAmount() {
        return this.tonAmount;
    }

    /**
     * @return the disabled
     */
    public boolean isDisabled() {
        return this.disabled;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @param fullLoadNumber the fullLoadNumber to set
     */
    public void setFullLoadNumber(Integer fullLoadNumber) {
        this.fullLoadNumber = fullLoadNumber;
    }

    /**
     * @param fullOilUsagePerKm the fullOilUsagePerKm to set
     */
    public void setFullOilUsagePerKm(BigDecimal fullOilUsagePerKm) {
        this.fullOilUsagePerKm = fullOilUsagePerKm;
    }

    /**
     * @param emptyOilUsagePerKm the emptyOilUsagePerKm to set
     */
    public void setEmptyOilUsagePerKm(BigDecimal emptyOilUsagePerKm) {
        this.emptyOilUsagePerKm = emptyOilUsagePerKm;
    }

    /**
     * @param internalOilUsage the internalOilUsage to set
     */
    public void setInternalOilUsage(BigDecimal internalOilUsage) {
        this.internalOilUsage = internalOilUsage;
    }

    /**
     * @param tonAmount the tonAmount to set
     */
    public void setTonAmount(BigDecimal tonAmount) {
        this.tonAmount = tonAmount;
    }

    /**
     * @param disabled the disabled to set
     */
    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }

}
